// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '出入库记录',
        name: 'FLH_IOWareHouseRecordModel',
        url: "/FLH_IOWareHouseRecordModel/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"OrderNumber":"","BarCode":"","DocumentType":"","Num":"","OperateUserName":"","OperateTime":"","CreateTime":""};
    const editFormOptions = [[{"title":"单号","required":true,"field":"OrderNumber","type":"text"}],
                              [{"title":"条码","required":true,"field":"BarCode","type":"text"}],
                              [{"dataKey":"FLH_单据类型","data":[],"title":"单据类型","required":true,"field":"DocumentType","type":"select"}],
                              [{"title":"数量","required":true,"field":"Num","type":"number"}],
                              [{"title":"操作人","required":true,"field":"OperateUserName","type":"text"}],
                              [{"title":"操作时间","required":true,"field":"OperateTime","type":"datetime"}],
                              [{"title":"添加时间","required":true,"field":"CreateTime","type":"datetime"}]];
    const searchFormFields = {"CreateTime":"","OrderNumber":"","BarCode":"","DocumentType":"","Num":"","OperateUserName":"","OperateTime":""};
    const searchFormOptions = [[{"title":"单号","field":"OrderNumber","type":"="}],[{"title":"条码","field":"BarCode","type":"="}],[{"dataKey":"FLH_单据类型","data":[],"title":"单据类型","field":"DocumentType","type":"select"}],[{"title":"数量","field":"Num","type":"number"}],[{"title":"操作人","field":"OperateUserName","type":"like"}],[{"title":"操作时间","field":"OperateTime","type":"datetime"}],[{"title":"添加时间","field":"CreateTime","type":"datetime"}]];
    const columns = [{field:'Id',title:'唯一编码',type:'bigint',sort:true,width:110,readonly:true,require:true,align:'left'},
                       {field:'CreateUserId',title:'CreateUserId',type:'bigint',width:110,hidden:true,align:'left'},
                       {field:'UpdateUserId',title:'UpdateUserId',type:'bigint',width:110,hidden:true,align:'left'},
                       {field:'CreatedUserName',title:'CreatedUserName',type:'string',width:110,hidden:true,align:'left'},
                       {field:'UpdatedUserName',title:'UpdatedUserName',type:'string',width:110,hidden:true,align:'left'},
                       {field:'CreateTime',title:'添加时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'UpdateTime',title:'UpdateTime',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'IsDelete',title:'IsDelete',type:'sbyte',width:110,hidden:true,align:'left'},
                       {field:'RedundancyColumn1',title:'RedundancyColumn1',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn2',title:'RedundancyColumn2',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn3',title:'RedundancyColumn3',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn4',title:'RedundancyColumn4',type:'string',width:120,hidden:true,align:'left'},
                       {field:'RedundancyColumn5',title:'RedundancyColumn5',type:'string',width:120,hidden:true,align:'left'},
                       {field:'OrderNumber',title:'单号',type:'string',width:110,require:true,align:'left'},
                       {field:'BarCode',title:'条码',type:'string',width:110,require:true,align:'left'},
                       {field:'DocumentType',title:'单据类型',type:'string',bind:{ key:'FLH_单据类型',data:[]},width:110,require:true,align:'left'},
                       {field:'Num',title:'数量',type:'int',width:110,require:true,align:'left'},
                       {field:'OperateUserName',title:'操作人',type:'string',width:110,require:true,align:'left'},
                       {field:'OperateTime',title:'操作时间',type:'datetime',width:150,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}